package com.dt.sns.mapper.member;

import org.apache.ibatis.annotations.Param;

import com.dt.sns.mapper.common.IBaseDao;
import com.dt.sns.model.member.ValidateCode;

/**
 * 验证码DAO接口 Created by zchuanzhao on 17/01/20.
 */
public interface IValidateCodeDao extends IBaseDao<ValidateCode> {

	/**
	 * 验证，30分钟以内有效
	 * 
	 * @param email
	 * @param code
	 * @param type
	 * @return
	 */
	ValidateCode valid(@Param("email") String email, @Param("code") String code, @Param("type") int type);

	int used(@Param("id") Integer id);
}